package com.kun.portal.webframe.po;

import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by Administrator on 2018/5/20.
 *
 *部门表
 *
 */
@Entity
@Table(
        name = "dept_mgr"
)
public class DeptMgrPo implements Serializable {
    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getDeptCode() {
        return deptCode;
    }

    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    @Id
    @GeneratedValue(
            generator = "dept_id"
    )
    @GenericGenerator(
            name = "dept_id",
            strategy = "uuid"
    )
    @Column(
            name = "dept_id",
            length = 32,
            nullable = false
    )
    private String deptId;
    @Column(
            name = "dept_code",
            length = 100
    )
    private String deptCode;//部门号
    @Column(
            name = "dept_name",
            length = 200
    )
    private String deptName;//部门名称
    @Column(
            name = "parent_code",
            length = 100
    )
    private String parentCode;//上级部门号
    @Column(
            name = "partent_name",
            length = 200
    )
    private String parentName;//上级部门名称

}
